	<h3>选择支付方式</h3>
<form action="<?php echo $this->createUrl('/pay/paypal/setEc',array('orderid'=>$orderid));?>" id="payForm" method="post">
<label class="radio">
<img src="<?php echo Yii::app()->baseUrl;?>/images/pay/paypal_logo.gif">
 <input type="radio" name="payChannel" id="byPaypal" value="paypal" checked>
</label>
<!-- <label class="radio"> -->
<!--  <input type="radio" name="payChannel" id="byPaypal" value="alipay" > -->
<!--  alipay -->
<!-- </label> -->
<input type="submit" id="paySubmit" value="支付" class="btn" />
</form>
<script type="text/javascript">
$(function(){
	$('input[name=payChannel]').change(function(e){
		var payChannel = $(this).val(),payForm=$('#payForm');
		if(payChannel == 'paypal'){
			payForm.attr('action','<?php echo $this->createUrl('/pay/paypal/setEc')?>');
		}else if(payChannel == 'alipay'){
			payForm.attr('action','<?php echo $this->createUrl('/pay/')?>');
		}
	});
});

</script>